Skip to content

cmd: add PKGPROXY_CACHEDIR env var for serve - #157

Merged
ganto merged 3 commits into
mainfrom
feature/cachedir
Aug 28, 2026
Merged

cmd: add PKGPROXY_CACHEDIR env var for serve#157
ganto merged 3 commits into
mainfrom
feature/cachedir

Conversation

@ganto

@ganto ganto commented Aug 28, 2026

Copy link
Copy Markdown
Owner

No description provided.

ganto added 3 commits August 28, 2026 23:29
Resolve the cache directory in serve's PersistentPreRunE using
flag -> env var -> default precedence, matching the PKGPROXY_HOST /
PKGPROXY_TRUST_PROXY pattern. Explicit --cachedir always wins, including
--cachedir cache; an empty PKGPROXY_CACHEDIR falls through to the default.
@ganto
ganto merged commit 39fca5d into main Aug 28, 2026
22 checks passed
@ganto
ganto deleted the feature/cachedir branch August 28, 2026 22:50
@ganto ganto added enhancement New feature or request go Pull requests that update Go code labels Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant